From 8dbed9810275bec1fb11a08bd18d925480640ee0 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Fri, 7 Apr 2006 00:32:54 +0100 Subject: [PATCH] Support __XEN_INTERFACE_VERSION__ defined to the empty string. This can happen when building Linux with an old .config file which doesn't have a value for CONFIG_XEN_INTERFACE_VERSION. Signed-off-by: Christian Limpach --- xen/include/public/xen-compat.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/include/public/xen-compat.h b/xen/include/public/xen-compat.h index c4f235095d..4ef17bbaa8 100644 --- a/xen/include/public/xen-compat.h +++ b/xen/include/public/xen-compat.h @@ -14,8 +14,11 @@ #if defined(__XEN__) /* Xen is built with matching headers and implements the latest interface. */ #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__ -#elif !defined(__XEN_INTERFACE_VERSION__) +#elif (__XEN_INTERFACE_VERSION__ - 0) == 0 /* Guests which do not specify a version get the legacy interface. */ +#ifdef __XEN_INTERFACE_VERSION__ +#undef __XEN_INTERFACE_VERSION__ +#endif #define __XEN_INTERFACE_VERSION__ 0x00000000 #endif -- 2.30.2